package com.yao2san.simcasserver.processor;

import lombok.Getter;
import lombok.Setter;

import java.security.Principal;
import java.util.HashMap;
import java.util.Map;

public class AttributePrincipal implements Principal {

    @Setter
    private String name;

    @Getter
    private Map<String, Object> attributes;

    public AttributePrincipal() {
        this.attributes = new HashMap<>();
    }

    @Override
    public String getName() {
        return this.name;
    }

}
